<?php

namespace Biz\Constants\Pay;

/**
 * NotifyPayEaseConstants.
 *
 * @license [http://www.85do.com] [杭州永奥网络科技有限公司]
 * @copyright Copyright (c) 2018-2026 Hangzhou Yongao Technology Co., Ltd. All rights reserved.
 */
class PayEaseConstants
{
    /**
     * Types.
     */
    const METHOD_SYNC  = 'SYNC';
    const METHOD_ASYNC = 'ASYNC';

    /**
     * Names.
     *
     * @var array
     */
    public static $MethodNames = [
        self::METHOD_SYNC  => '同步',
        self::METHOD_ASYNC => '异步',
    ];

    /**
     * Status.
     */
    const STATUS_SYNC_SUBMIT            = 1; //已提交
    const STATUS_SYNC_PAY_SUCCESS       = 20; //支付成功
    const STATUS_SYNC_PAY_FAILED        = 30; //支付失败

    const STATUS_ASYNC_PAY_PENDING        = 0; //待处理
    const STATUS_ASYNC_PAY_SUCCESS        = 1; //支付完成
    const STATUS_ASYNC_PAY_FAILED         = 3; //支付被拒绝

    /**
     * Status Names.
     *
     * @var array
     */
    public static $StatusNames = [
        self::STATUS_SYNC_SUBMIT            => '已提交',
        self::STATUS_SYNC_PAY_SUCCESS       => '支付成功',
        self::STATUS_SYNC_PAY_FAILED        => '支付失败',

        self::STATUS_ASYNC_PAY_SUCCESS       => '支付完成',
        self::STATUS_ASYNC_PAY_FAILED        => '支付被拒绝',
    ];
}
